package com.example.springbootoauth2jwtclientserver.exception;

public enum CustomExceptionType {
    USER_INPUT_ERROR("用户输入异常",400),
    SYSTEM_ERROR("系统服务异常",500),
    OTHER_ERROR("其他未知异常",999)
    ;
    private String typeDesc;
    private int code;

    public String getTypeDesc() {
        return typeDesc;
    }

    public int getCode() {
        return code;
    }

    CustomExceptionType(String typeDesc, int code) {
        this.typeDesc = typeDesc;
        this.code = code;
    }
}
